﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DTO.Accoes;
using SGPFWebApp.Controlos.Tipos;

namespace SGPFWebApp.Controlos
{
    public partial class RelatorioAccoes : System.Web.UI.UserControl
    {
        public List<Accao> AccoesProjecto { get; set; }
        public ObterAccoesDelegate ObterAccoes { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            IEnumerable<Accao> accoes = ObterAccoes();
            AccoesProjecto = new List<Accao>();

            if(accoes != null){
                AccoesProjecto = accoes.ToList();
            }
        }
    }
}